<link rel="stylesheet" href="../新闻管理系统/public/style/news_index.css" type="text/css" />
<div id="box">
 <div id="head">
   <div class="heads">
     <div class="heads-left">
      <ul>
       <li><a href="" >新闻</a></li>
       <li><a href="" >军事</a></li>
       <li><a href="" >娱乐</a></li>
       <li><a href="" >音乐</a></li>
       <li><a href="" >图片</a></li>
       <li><a href="" >视频</a></li>
      </ul>
     </div>
     <div class="heads-right">
      <ul>
       <?php  session_start(); ?>
        <?php if($_SESSION == null){ ?>
          <li><a href="index.php?p=home&c=enroll&a=display" >注册</a></li>
          <li><a href="index.php?p=home&c=user&a=login" >登录</a></li>
        <?php }else{ ?>
          <li><?php echo $_SESSION['user']; ?></li>
          <li><a href="index.php?p=home&c=user&a=logout" >退出</a></li>
        <?php } ?>
      </ul>
     </div>
   </div>
   <div class="header">
     <div class="logo">
      <img src="../新闻管理系统/public/images/logo.png" />
     </div>
     <div class="searchlnput">
      <form id="form1" name="form1" method="post" action="news_index.html">
        <input class="searcha" type="text" name="textfield" id="textfield" />
        <input class="searchb" type="submit" name="button" id="button" value="立即搜索" />
      </form>
     </div>
   </div>
   <div class="nav">
    <ul>
     <li class="subnav-a"><a href="">&nbsp;&nbsp;首页</a></li>
     <li class="subnav-b"><a href="">&nbsp;&nbsp;国内</a></li>
     <li class="subnav-b"><a href="">&nbsp;&nbsp;国际</a></li>
     <li class="subnav-b"><a href="">&nbsp;&nbsp;军事</a></li>
     <li class="subnav-b"><a href="">&nbsp;&nbsp;财经</a></li>
     <li class="subnav-b"><a href="">&nbsp;&nbsp;娱乐</a></li>
     <li class="subnav-b"><a href="">&nbsp;&nbsp;体育</a></li>
     <li class="subnav-b"><a href="">互联网</a></li>
     <li class="subnav-b"><a href="">&nbsp;&nbsp;科技</a></li>
     <li class="subnav-b"><a href="">&nbsp;&nbsp;游戏</a></li>
     <li class="subnav-b"><a href="">&nbsp;&nbsp;美图</a></li>
     <li class="subnav-b"><a href="">&nbsp;&nbsp;汽车</a></li>
     <li class="subnav-b"><a href="">&nbsp;&nbsp;房产</a></li>
    </ul>
   </div>
 </div>
 <div id="main">
  <div class="main-left">
   <div class="left-a">
     <h2>热点要闻</h2>
   </div>
   <div class="left-b">
    <!--根据id循环输出新闻标题-->
    <?php for($i=0;$i<count($rs) && $i<23;$i++){ ?> 
     <ul>
      <li class="one"><a href="index.php?p=home&c=content&a=list&id=<?php echo $rs[$i]['id'] ?>"><?php echo $rs[$i]['title'] ?></a><br /></li>
     </ul>
    <?php } ?>
   </div>
  </div>
  <div class="main-right">
   <div class="one">
   
    <div class="aa">
      <img src="../../新闻管理系统/public/images/slideshow1.jpg" />
      <p>国际鸟类摄影师大赛佳作 全新视角认识“羽毛朋友”</p>
    </div>
    
    <div class="bb">
        <li>理上网来-理论新境界&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;十九大-理论新视野</li>
    </div>
   </div>
   <div class="two">
    <div class="aa">
      <h3>热搜新闻词<span class="en">HOT WORDS</span></h3>
    </div>
    <div class="bb">

     <div class="bb0">
       <p></p>
     </div>


     <div class="bb1">
       <p></p>
     </div>

     <div class="bb2">
       <p></p>
     </div>

    </div>
   </div>
   <div class="three">
    <div class="cc">
     <h3>百家号<span class="en">BAIJIA</span></h3>
    </div>
    <div class="left">
     <div class="AA">
      <img src="../../新闻管理系统/public/images/Bai-1.jpg" />
      <p>杨振宁惊扰了中国的大对撞机之梦</p>
     </div>
     <div class="AA">
      <img src="../../新闻管理系统/public/images/Bai-2.jpg" />
      <p>B站拿下LOL三年独播权</p>
     </div>
     <div class="AA">
      <img src="../../新闻管理系统/public/images/Bai-3.jpg" />
      <p>成都将评选6个“最美河湖”</p>
     </div>
    </div>
    <div class="right">
     <div class="BB">
      <?php for($i=23;$i<count($rs) && $i<27;$i++){ ?> 
       <ul>
        <li><a href="index.php?p=home&c=content&a=list&id=<?php echo $rs[$i]['id'] ?>"><?php echo $rs[$i]['title'] ?></a></li>
       </ul>
      <?php } ?>
     </div>
     <div class="BB">
      <?php for($i=27;$i<count($rs) && $i<31;$i++){ ?> 
       <ul>
        <li><a href="index.php?p=home&c=content&a=list&id=<?php echo $rs[$i]['id'] ?>"><?php echo $rs[$i]['title'] ?></a></li>
      </ul>
     <?php } ?>
     </div> 
     <div class="BB">
      <?php for($i=31;$i<count($rs) && $i<35;$i++){ ?> 
       <ul>
        <li><a href="index.php?p=home&c=content&a=list&id=<?php echo $rs[$i]['id'] ?>"><?php echo $rs[$i]['title'] ?></a></li>
       </ul>
      <?php } ?>      
     </div>
    </div>
   </div>
  </div>
 </div>
 <div id="footer">
 </div>
</div>
